package com.andrew.mavenproject2;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.portlet.ModelAndView;
import org.springframework.stereotype.Controller;

@Controller
public class myportlet {
    @RequestMapping("view")
	public ModelAndView handleRenderRequest() throws Exception {
		Map<String, Object> model = new HashMap<String, Object>();
		model.put("helloWorldMessage", "Hello World");
		return new ModelAndView("hello", model);
	}
}
